package com.week2.day01;

public class Fish extends Animals {
    public Fish() {
    }

    public Fish(String name) {
        super(name);
    }

    public Fish(String name, String breed, int age, String sex) {
        super(name, breed, age, sex);
    }

    public void swim() {
        System.out.println(getName()+"在游泳");
    }
}
